package com.zld.smarket.service;

import com.zld.smarket.pojo.Stock;
import com.zld.smarket.result.ResponseData;

import java.util.List;

public interface StockService {
    ResponseData findList(Integer page, Integer limit);

    ResponseData search(String s, Integer page, Integer limit);

    List<Stock> selectbyGoodsno(Long goodsNo, Long supplier, Long storehouse);

    Integer addStockNum(Long goodsNo,Long supplier,Long storehouse,Long stockinNum);

    Integer addStock(Stock stock);

    Integer reduceStockNum(Long goodsNo, Long supplierId, Long storehouseNo, Long stockoutNum);

    ResponseData stateSearch(String s, Integer page, Integer limit);
}
